﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Elegant2.Persistence
{
    class SQLServerDAOFactory
    {
        ITransferObject transferObject;
        public SQLServerDAOFactory(ITransferObject to)
        {
            this.transferObject = to;
        }
        public ITicketDAO createTicketDAO()
        {
            return new SQLServerTicketDAO(transferObject);
        }

        public IPaymentDAO createPaymentDAO()
        {
            return new SQLServerPaymentDAO(transferObject);
        }
    }
}
